import UserAction from "../action/user-action";

const UserReducer = (state, action) => {
  switch (action.type) {
    case UserAction.SAVEINFO:
      return { ...state, username: "admin" };
    default:
      return state;
  }
};

export default UserReducer;
